﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DetailViewDemo.aspx.cs" Inherits="OtherControls_DetailViewDemo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateSelectButton="True" 
            CellPadding="4" DataKeyNames="Mid" ForeColor="#333333" GridLines="None" 
            onselectedindexchanging="GridView1_SelectedIndexChanging" Width="705px">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
    
    </div>
    <br />
    Detail Manufacturer<br />
    <asp:DetailsView ID="DetailsView1" runat="server" CellPadding="4" 
        ForeColor="#333333" GridLines="None" Height="50px" Width="125px">
        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <CommandRowStyle BackColor="#FFFFC0" Font-Bold="True" />
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
        <FieldHeaderStyle BackColor="#FFFF99" Font-Bold="True" />
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <FooterTemplate>
            <asp:HyperLink ID="HyperLink1" runat="server">HyperLink</asp:HyperLink>
            <asp:HyperLink ID="HyperLink2" runat="server">HyperLink</asp:HyperLink>
        </FooterTemplate>
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:DetailsView>
    <p>
        Form View</p>
    <p>
        <asp:FormView ID="FormView1" runat="server">
            <ItemTemplate>
                Name
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("MName") %>'></asp:TextBox>
                <br />
                Address
                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("Address") %>'></asp:TextBox>
                <br />
                Phone
                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval("Phone") %>'></asp:TextBox>
                <br />
                Email<asp:TextBox ID="TextBox4" runat="server" Text='<%# Eval("Email") %>'></asp:TextBox>
                <br />
                <asp:Button ID="Button1" runat="server" Text="Save" />
            </ItemTemplate>
        </asp:FormView>
    </p>
    </form>
</body>
</html>
